package com.mingqijia.gassafety.webserver.request.workorder.mbp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @program: gassafety
 * @description:
 * @author: Mr.Wang
 * @create: 2022-11-14 14:34
 **/
@Data
@ApiModel(value = "安装工单发起request")
public class InitiateWorkOrderRequest {

    @ApiModelProperty(value = "模板类型 1-模板一，2-模板二")
    private Integer templateType;

    @NotEmpty(message = "户号不允许为空")
    @ApiModelProperty(value = "户号")
    private String subsCode;

    @ApiModelProperty(value = "处理部门" )
    @NotEmpty(message = "户号不允许为空")
    private String orgCode;

    @ApiModelProperty(value = "设备厂家")
    @NotEmpty(message = "设备厂家不允许为空")
    private String factory;

    @ApiModelProperty(value = "设备型号")
    @NotEmpty(message = "设备型号不允许为空")
    private String brand;

    @ApiModelProperty(value = " 设备类型")
    @NotEmpty(message = "设备类型不允许为空")
    private String  equipmentType;

    @ApiModelProperty(value = "是否内购 0:否, 1:是")
    @NotEmpty(message = "是否内购不允许为空")
    private String isbuy;

    @ApiModelProperty(value = " 购买地点 1:公司内部, 2:公司外部")
    @NotEmpty(message = "购买地点不允许为空")
    private String buyaddr;


    @ApiModelProperty(value = " 预约时间")
    @NotNull(message = "预约时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd" ,timezone="GMT+8")
    private Date appointmentTime;

    @ApiModelProperty(value = " 联系人")
    @NotEmpty(message = "联系人不允许为空")
    private String contact;

    @ApiModelProperty(value = " 联系电话")
    @NotEmpty(message = "联系电话不允许为空")
    private String telephone;

    @ApiModelProperty(value = "补充说明")
    @Size(max = 200, message = "长度不允许超出200字符")
    private String remark;

    @ApiModelProperty(value = "用户id")
    private String memberId;

    @ApiModelProperty("经度")
    private String lat;

    @ApiModelProperty("纬度")
    private String lon;

    @ApiModelProperty(value = "客户地址")
    private String address;

    @ApiModelProperty(value = "客户id")
    private Integer consumerId;

    @ApiModelProperty("客户类型 1-企业客户 2-个人客户")
    private Integer orderCustType;
}
